package com.teemo.dp.builder.demo1;

/**
 * @author Teemo
 */
public class LaptopComputerBuilder implements ComputerBuilder{
    private Computer computer;
    public LaptopComputerBuilder()
    {
        computer = new Computer();
    }
    @Override
    public void buildCpu() {
        computer.setCpu("i7");
    }

    @Override
    public void buildHardDisk() {
        computer.setHardDisk("256G");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("8G");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
